package com.itheima.reggie.service;

import com.github.pagehelper.PageInfo;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SetmealService {
    void insert(SetmealDto setmealDto);

    PageInfo<SetmealDto> selectByPage(int page, int pageSize, String name);

    String delete(String id);

    void updateStatus(String id, int i);

    SetmealDto selectAllById(String id);

    void updateById(SetmealDto setmealDto);

    List<Setmeal> selectByCategoryId(String categoryId);
}
